package com.eliza.base.views.learn.layouts.basic

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.navigation.NavController

object LayoutBasicX {
    @Composable
    fun Show(navController: NavController) {
        Column {
            var count by remember {
                mutableIntStateOf(0)
            }
            Button(onClick = { count = (count + 1) % 4 }) {
                Text(text = "LayoutBasicX $count")
            }
            when (count) {
                0 -> LayoutAdaptiveScreen()
                1 -> AlignmentLineScreen()
                2 -> ModifiersX.Show(navController)
                3 -> PagerX.Show(navController)
                4 -> FlowX.Show(navController)
            }
        }
    }

    @Composable
    private fun LayoutAdaptiveScreen() {
        Text(text = "LayoutAdaptiveScreen")

    }
}


